﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace WLYT.Domain.Entries
{
    ///<summary>
    ///数据库日志
    ///</summary>
    [Tenant("db2")]
    [SugarTable("DataBaseLog")]
    public partial class DataBaseLog
    {
           public DataBaseLog(){

            this.CreateTime =DateTime.Now;
            this.Sql =Convert.ToString("");
            this.Param =Convert.ToString("");
            this.IP =Convert.ToString("");
            this.Timer =Convert.ToInt32("0");

           }
           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey=true,IsIdentity=true)]
           public long Id {get;set;}

           /// <summary>
           /// Desc:
           /// Default:DateTime.Now
           /// Nullable:False
           /// </summary>           
           public DateTime CreateTime {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string Sql {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string Param {get;set;}

           /// <summary>
           /// Desc:
           /// Default:
           /// Nullable:False
           /// </summary>           
           public string IP {get;set;}

           /// <summary>
           /// Desc:执行时间
           /// Default:0
           /// Nullable:False
           /// </summary>           
           public int Timer {get;set;}

    }
}
